// Master HomeNet Config File
// 12-13-2010 <mdoll@email.usf.edu> http://opensource.org/licenses/mit-license.php

#ifndef HomeNetConfig_h
#define HomeNetConfig_h


#define ENABLE_SERIAL 1
#define ENABLE_RF12 1
#define DEBUG 1

//remove success/fail out of the stack and directly clear packets
//#define REDUCE_STACK

#define SERIAL_SPEED 115200

#define DEVICE_UPDATE 1000

//schedule timer (millis)  = DEVICE_SCHEDULE * DEVICE_UPDATE;
#define DEVICE_SCHEDULE 1
  
#define PACKET_BUFFER 4
#define PACKET_TIMEOUT 500
#define PACKET_RETRY 1

//Max size of Packet
#define PACKET_SIZE 66
#define PAYLOAD_SIZE 56

#define TEMPERATURE_FORMAT  1 //0 = c, 1 = F

//0 sends it as a broadcast to all, 1 sends packet to base station only
#define RF12_NODE_OUT_OF_RANGE_SEND_TO 1 //not working yet
#define RF12_DEFAULT_FREQ RF12_915MHZ
#define RF12_DEFAULT_GROUP 33

#endif
